#include <iostream>
#include <unordered_set>

using namespace std;

unordered_set<string> set;

int cnt;

int main()
{
	int T;
	cin >> T;
	
	while (T -- )
	{
		string n;
		cin >> n;
		
		if (set.count(n)) continue;
		
		cnt ++ ;
		set.insert(n);
	}
	
	cout << cnt << endl;
	
	return 0;
}